package com.beta.admin.vo;

import com.beta.em.order.OrderMode;
import com.beta.em.order.OrderStatus;
import com.beta.em.order.PayStatus;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * Created by lichao on 2017/1/20.
 */
@Getter
@Setter
public class OrdersVo {
    private String code;
    private String createdAt;
    private String user;
    private String cityName;
    private String mode;
    private String status;
    private String payStatus;
    private BigDecimal amount;
    private String statusText;
    private String payStatusText;
    private String modeText;

    public String getStatusText(){
        return OrderStatus.getCnValue(this.status);
    }
    public String getPayStatusText(){
        return PayStatus.getCnValue(this.payStatus);
    }
    public String getModeText(){
        return OrderMode.getOrderMode(this.mode).getCnValue();
    }
}
